package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.JudgmentquestionsMapper;
import com.ruoyi.system.domain.Judgmentquestions;
import com.ruoyi.system.service.IJudgmentquestionsService;
import com.ruoyi.common.core.text.Convert;

/**
 * 判断/填空题管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-08-19
 */
@Service
public class JudgmentquestionsServiceImpl implements IJudgmentquestionsService 
{
    @Autowired
    private JudgmentquestionsMapper judgmentquestionsMapper;

    /**
     * 查询判断/填空题管理
     * 
     * @param id 判断/填空题管理主键
     * @return 判断/填空题管理
     */
    @Override
    public Judgmentquestions selectJudgmentquestionsById(Long id)
    {
        return judgmentquestionsMapper.selectJudgmentquestionsById(id);
    }

    /**
     * 查询判断/填空题管理列表
     * 
     * @param judgmentquestions 判断/填空题管理
     * @return 判断/填空题管理
     */
    @Override
    public List<Judgmentquestions> selectJudgmentquestionsList(Judgmentquestions judgmentquestions)
    {
        return judgmentquestionsMapper.selectJudgmentquestionsList(judgmentquestions);
    }

    /**
     * 新增判断/填空题管理
     * 
     * @param judgmentquestions 判断/填空题管理
     * @return 结果
     */
    @Override
    public int insertJudgmentquestions(Judgmentquestions judgmentquestions)
    {
        return judgmentquestionsMapper.insertJudgmentquestions(judgmentquestions);
    }

    /**
     * 修改判断/填空题管理
     * 
     * @param judgmentquestions 判断/填空题管理
     * @return 结果
     */
    @Override
    public int updateJudgmentquestions(Judgmentquestions judgmentquestions)
    {
        return judgmentquestionsMapper.updateJudgmentquestions(judgmentquestions);
    }

    /**
     * 批量删除判断/填空题管理
     * 
     * @param ids 需要删除的判断/填空题管理主键
     * @return 结果
     */
    @Override
    public int deleteJudgmentquestionsByIds(String ids)
    {
        return judgmentquestionsMapper.deleteJudgmentquestionsByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除判断/填空题管理信息
     * 
     * @param id 判断/填空题管理主键
     * @return 结果
     */
    @Override
    public int deleteJudgmentquestionsById(Long id)
    {
        return judgmentquestionsMapper.deleteJudgmentquestionsById(id);
    }
}
